<!DOCTYPE html>
<title>Testing evaluation order</title>

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<script type="module">
  import "./evaluation-order-setup.mjs";
  window.addEventListener("load", event => globalThis.testDone());
  globalThis.expectedLog = [
    "step-1-1", "step-1-2",
    "microtask",
    "global-error", "error",
    "script-load",
    "global-load"
  ];
</script>

<script type="module" src="evaluation-order-1.mjs"
    onerror="unreachable()" onload="log.push('script-load')"></script>
